Repository navigation
统一导入确认,并保护复制与排队导入 - #518
Merged
Merged
Conversation
taekchef
changed the base branch from
codex/restore-codeberg-main-20260930
to
main
September 30, 2026 14:53
Add synthetic regressions for vanished representatives, failed course transactions, vanished destinations, and the initial Markdown material role. Retain the accepted explicit Chinese fixture locale without copying the temporary acceptance workflow.
Revalidate preview duplicates against current destination content and successful copies scoped to that destination. Retain same-batch successful copy evidence across retry, compare prepared source HTML to raw imported bytes, and preserve course keep-both behavior. Align initial-course Markdown copy with its material-only placement. Add targeted synthetic recovery, retry, changed-destination, conflict, and HTML regressions.
…pr518-main-20261001
…518-followup-20261002
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
普通资料导入统一先确认文件范围、目标课程、重复和同名冲突,确认后才复制;支持停止剩余文件、结果汇总和失败重试。Markdown 默认作为资料,明确从笔记入口导入时才作为笔记。原生文件选择窗口与确认窗口配合,保留已打开笔记的内容加载和保存保护。
修复本轮复审发现的两个根因:复制过程校验源文件、资料库根与目标目录身份,复用现有同名处理和目标卷暂存后落位,拒绝链接越界和复制期间源内容变化;导入中新增批次保留各自课程、资料/笔记角色及文件权限,完成、取消、重试和切批时正确释放。失败批次必须明确处理,不能被后来文件静默替换。
验证
修复提交
1b120a392c860e562dab2671e7a2a993945ddb73已随 #519 最终整合修复 进入主线,合并提交为0ef1318aa31a4ed29d87ad83bc94cadcbc331562。公共弹窗冲突和连续导入时的窗口裁切在该组合解决,保留本 PR 的原提交历史。abc43d2dc9b74eb4d24bf32379a862a312ba0869的代码树与主线合并提交一致。本次未发布或替换安装版;自动检查不代表手工批量操作或旧版升级验收。来源
迁移自 Codeberg #49,原作者 taekchef,原 head
a71f324595b56934913c30c4b9fd42bc13c4f2b3。保留原始提交历史;当前范围以本 PR 对主线的实际差异为准。